<%@ page import="com.zhiyou100.dao.StudentDao" %>
<%@ page import="com.zhiyou100.entityclass.Student" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: yang
  Date: 7/20/20
  Time: 19:53
  To change this template use File | Settings | File Templates.
--%>
<%@page contentType="text/html; charset=UTF-8" language="java" errorPage="error.jsp" %>
<html>
<head>
    <title>获取一个</title>
    <link rel="stylesheet" href="${theProjectName}/css/login.css">
</head>
<body>

<c:if test="${user != true}">
    <%--  没有登陆，转发到登陆页面   --%>
    <c:redirect url="/jsp/login.jsp"/>
</c:if>
<h2 align="center">
    <a href="${theProjectName}/jsp/home.jsp"> 回到主页   </a>
</h2>




<c:if test="${empty student}">
    <h1 align="center" style="color: red"> 查无此人</h1>
</c:if>

<c:if test="${not empty student}">
    <table border="1" style="width: 800px">
        <tr>
            <td>学生 id</td>
            <td>学生姓名</td>
            <td>学生性别</td>
            <td>学生年龄</td>
            <td>老师 id</td>
        </tr>
        <tr>
            <td>${student.sid}</td>
            <td>${student.sname}</td>
            <td>${student.sid}</td>
            <td>${student.sid}</td>
            <td>${student.sid}</td>
        </tr>

    </table>
</c:if>


</body>
</html>
